home *** CD-ROM | disk | FTP | other *** search
- Path: nnrp.info.ucla.edu!geoff
- From: geoff@ficus.cs.ucla.edu (Geoff Kuenning)
- Newsgroups: comp.lang.c++
- Subject: Re: Derived classes inter-referencing each other
- Date: 5 Feb 1996 21:29:22 GMT
- Organization: Ficus Research Project, UCLA Computer Science Department
- Message-ID: <4f5sri$1g0s@saba.info.ucla.edu>
- References: <4em3ta$2p0@delphi.cs.ucla.edu> <4f0n91$a3b@news2.ios.com>
- NNTP-Posting-Host: exeter.cs.ucla.edu
-
- In article <4f0n91$a3b@news2.ios.com> vlad@gramercy.ios.com (Vlastimil
- Adamovsky) writes:
-
- > Unless there is some special reason behind your code, you could use a
- > pointer instead a reference. Then, it shoud work with a forward
- > declarations.
-
- Seems unlikely. The problem isn't lack of knowledge of structure
- layout (a reference is equivalent to a pointer for that difficulty).
- The problem is that the compiler needs to know that "bar" is derived
- from "barbase".
- --
- Geoff Kuenning g.kuenning@ieee.org geoff@ITcorp.com
- http://www.cs.ucla.edu/ficus-members/geoff/
-